package com.tju.resource.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 耗材入库记录
 * @TableName tb_pur_store
 */
@TableName(value ="tb_pur_store")
@Data
public class TbPurStore implements Serializable {
    /**
     * 入库记录id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 耗材id
     */
    private Long consId;

    /**
     * 入库数量
     */
    private Integer quantity;

    /**
     * 购置这批耗材所消耗的款额
     */
    private Double amount;

    /**
     * 检查报告
     */
    private String qcReport;

    /**
     * 采购入库人
     */
    private String createBy;

    /**
     * 入库时间
     */
    private Date createTime;

    /**
     * 备注
     */
    private String remark;
    /**
     * 耗材对象
     */
    @TableField(exist = false)
    private TbConsumables tbConsumables;

    public TbPurStore() {
    }

    public TbPurStore(Long consId, Integer quantity, Double amount, String qcReport, String createBy) {
        this.consId = consId;
        this.quantity = quantity;
        this.amount = amount;
        this.qcReport = qcReport;
        this.createBy = createBy;
    }
}